﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace QiAdmin.Model.System.Models
{
    public class UserMenu
    {
        public int UserId { get; set; }
        public int DeptId { get; set; }
        public int RoleId { get; set; }
        public int MenuId { get; set; }
        public int MenuParentId { get; set; }

        public string MenuTitle { get; set; }
        public string MenuName { get; set; }
        public string MenuPath { get; set; }
        public string MenuIcon { get; set; }
        public string MenuComponent { get; set; }
        public string MenuRedirect { get; set; }
        public bool MenuIsHide { get; set; }
        public bool MenuIsIframe { get; set; }
        public bool MenuIsKeepAlive { get; set; }
        public bool MenuIsLink { get; set; }
        public bool MenuIsAffix { get; set; }

        public string MenuLinkUrl { get; set; }
    }

    public class UserTreeMenu
    {
        public string path { get; set; }
        public string name { get; set; }
        public string component { get; set; }
        public string redirect { get; set; }
        public MenuMeta meta { get; set; }
        public List<UserTreeMenu> children { get; set; }
    }
    public class MenuMeta
    {
        public string title { get; set; }
        public string icon { get; set; }
        public bool isHide { get; set; }
        public bool isKeepAlive { get; set; }
        public bool isAffix { get; set; }
        public bool isIframe { get; set; }
        public bool isLink { get; set; }
        public string url { get; set; }
    }

    public class UserButton
    {
        public string Name { get; set; }
        public string Path { get; set; }
    }
}
